<?php
    include( PATH_PRIVATE . "kernel.php");

	loadClass("models/dao/EndpointDAO.php");
	loadClass("components/handlers/EndpointHandler.php");
	loadClass("components/handlers/GroupEndpointHandler.php");
/**
 * 
 */
class homeHandler extends Handler {
	
	function inicioAction(){
		echo "OOOOOKKKKKK";
	}
	
	function indexAction(){
		$endpoint = new EndpointDAO();
		$endpoint->getActivesByParent();
	
		
		$eH = new EndpointHandler();
		$tabla = $eH->showActivesAction(false);

		
		$form = $eH->formAction(false);
		$form->setVar('tabla', $tabla->name);
		
		$this->setVar('endpoint', $endpoint);
		$this->setVar('tabla', $tabla);
		$this->setVar('form', $form);
		$this->display("views/home/main.php");
	}
	
	
}

?>
